package com.docmanage.am.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.docmanage.common.annotation.Excel;
import com.docmanage.common.core.domain.BaseEntity;

/**
 * 目录角色关联对象 am_role_directory
 * 
 * @author docmanage
 * @date 2024-03-07
 */
public class AmRoleDirectory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 角色id */
    @Excel(name = "角色id")
    private Long roleId;

    /** 目录id */
    @Excel(name = "目录id")
    private Long directoryId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoleId(Long roleId) 
    {
        this.roleId = roleId;
    }

    public Long getRoleId() 
    {
        return roleId;
    }
    public void setDirectoryId(Long directoryId) 
    {
        this.directoryId = directoryId;
    }

    public Long getDirectoryId() 
    {
        return directoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roleId", getRoleId())
            .append("directoryId", getDirectoryId())
            .toString();
    }
}
